package exception;

import com.sun.xml.internal.ws.policy.privateutil.PolicyUtils;

import java.awt.*;
import java.io.FileNotFoundException;
import java.io.IOException;

public class ThrowsDemo3 {
    public void dosome() throws IOException, AWTException{}
}
class SubClass extends ThrowsDemo3{
    public void dosome() throws IOException,AWTException{}//完全一样可以
    //public void dosome(){}; //不抛出也可以
    //public void dosome() throws IOException{}//抛出部分异常
    //public void dosome() throws FileNotFoundException{}//抛出超类声明异常的子类型异常



}